package tmproject.hlhj.fhp.tmproject

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import android.view.ViewGroup
import java.util.ArrayList

/**
 * Created by Never Fear   on 2018\8\13 0013.
Never More....
 */
class FgmPagerAdp(fragmentManager: FragmentManager, private val datas: ArrayList<Fragment>) :FragmentPagerAdapter(fragmentManager) {
    override fun getItem(position: Int): Fragment {
        return datas.get(position)
    }

    override fun getCount(): Int {
        return datas.size
    }

    override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
//        super.destroyItem(container, position, `object`)
    }
}